Page({
  data: {
      comment: {}
  },
  onLoad(options) {
      const commentId = options.id;
      this.getCommentDetail(commentId);
  },
  async getCommentDetail(commentId) {
      const db = wx.cloud.database();
      const res = await db.collection('comments').doc(commentId).get();
      this.setData({
          comment: res.data
      });
  }
})
  